package ch4;

import java.util.Scanner;
public class Ex11 {

    public static void main(String[] args) {
        System.out.print("Enter a decimal value(0 to 15):");
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        char ch = (char)num;
        char hex = (char)(ch + 'A' - 10);
        System.out.println("The hex value is " + hex);
    }
}

